package com.qf.controller;

import com.qf.pojo.Manger;
import com.qf.service.MangerService;
import com.qf.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


@RestController

public class MangerController {
    @Resource
    private MangerService mangerService;
    @GetMapping("/findManger")
    public R findAll(){
        List<Manger> manger = mangerService.findManger();
        return R.ok("查询成功",manger);
    }
}
